#ifndef TODOEDITOR_H
#define TODOEDITOR_H

#include <QDialog>
#include "publicswidget.h"
#include <QtSql>
#include "publics.h"
namespace Ui {
    class ToDoEditor;
}

class ToDoEditor : public QDialog
{
    Q_OBJECT

public:
    explicit ToDoEditor(QWidget *parent = 0);
    ~ToDoEditor();
    PublicsWidget *pbs;

    QString RefNo;
    QSqlDatabase db;
    QString state;
    QString ToDoID;

    void showData();
    void saveData();

    bool isEnabled;
    bool isNew;
protected:
    void changeEvent(QEvent *e);

private:
    Ui::ToDoEditor *ui;
    Publics myPublics;
private slots:
    void on_buttonBox_accepted();
};

#endif // TODOEDITOR_H
